﻿using MiniFox.Components;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Mail
{
    /// <summary>
    /// 
    /// </summary>
    public static class MailServiceFactory
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public static IMailService CreateInstance(string name)
        {
            var mailAccount = ComponentFactory.GetComponent<IMailService>(name);
            return mailAccount;
        }

    }
}
